import java.util.Scanner;

public class c6 {
    //在主函数中从键盘接收X, Y , Z3个数，编写函数计算这3个数的立方和并返回计算结果：S=X3+Y3+Z3
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个数：");
        int X=scanner.nextInt();
        System.out.println("请输入一个数：");
        int Y=scanner.nextInt();
        System.out.println("请输入一个数：");
        int Z=scanner.nextInt();
        int S=X*X*X+Y*Y*Y+Z*Z*Z;
        System.out.println(S);
    }
}
